#include"stdafx.h"
#pragma once

using namespace std;
class HttpWebResponse
{
public:
	static HttpWebResponse * Create(string headers, byte* respondBytes, size_t respondBytesLength);
	static HttpWebResponse* Create(HttpWebResponse& hwr);
	~HttpWebResponse();
	
	string ToString();
	byte* GetData();
	size_t Length();
	string GetHeaders();
	string GetCookies();
private:
	HttpWebResponse() {};
	HttpWebResponse(HttpWebResponse& hwr) {};
	string headers = "";
	byte* respondBytes = nullptr;
	size_t respondBytesLength = 0;
	string cookies = "";
	string AnalyzeCookies();
};

